import request from '@/utils/request'

// 查询物资领取列表
export function listMaterial_receive(query) {
  return request({
    url: '/material_receive/material_receive/list',
    method: 'get',
    params: query
  })
}

// 查询物资领取详细
export function getMaterial_receive(receiveId) {
  return request({
    url: '/material_receive/material_receive/' + receiveId,
    method: 'get'
  })
}

// 新增物资领取
export function addMaterial_receive(data) {
  return request({
    url: '/material_receive/material_receive',
    method: 'post',
    data: data
  })
}

// 修改物资领取
export function updateMaterial_receive(data) {
  return request({
    url: '/material_receive/material_receive',
    method: 'put',
    data: data
  })
}

// 删除物资领取
export function delMaterial_receive(receiveId) {
  return request({
    url: '/material_receive/material_receive/' + receiveId,
    method: 'delete'
  })
}
